package com.goodluck.goodluckim.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

import com.goodluck.goodluckim.db.greendao.DaoMaster;

import org.greenrobot.greendao.database.Database;

/**
 * Created by wyj on 2018/9/7.
 */
public class BaseOpenHelper extends DaoMaster.OpenHelper {
    public BaseOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory) {
        super(context, name, factory);
    }

    /**
     * 数据库升级
     * 记得提高greendao版本号
     *
     * @param db
     * @param oldVersion
     * @param newVersion
     */
    @Override
    public void onUpgrade(Database db, int oldVersion, int newVersion) {
    }
}
